@font-face {
    font-family: "Museo Sans";
    src:
        url("../fonts/MuseoSans/MuseoSans-500.woff2") format("woff2"),
        url("../fonts/MuseoSans/MuseoSans-500.woff") format("woff");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --slate-700: #485570;
    --slate-500: #68748c;
    --slate-300: #d9dfe8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--brand-hover);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--brand-primary);
    font-family: "Museo Sans", "Segoe UI", sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    min-height: 106px;
    color: var(--white);
    background:
        linear-gradient(100deg, var(--brand-primary), var(--brand-hover));
    box-shadow: 0 4px 16px rgb(var(--brand-primary-rgb) / 22%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 100px), 1780px);
    margin: 0 auto;
}












.landing {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: calc(100vh - 106px);
    min-height: calc(100svh - 106px);
    place-items: center;
    overflow: hidden;
    padding: clamp(38px, 6vh, 76px) clamp(20px, 5vw, 80px);
}

.landing__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(var(--brand-primary-rgb) / 3%) 0%, rgb(var(--brand-primary-rgb) / 30%) 100%),
        url("../img/Fondo.jpg") center / cover no-repeat;
}

.landing::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgb(var(--brand-primary-rgb) / 8%), transparent 28% 72%, rgb(var(--brand-primary-rgb) / 8%));
    pointer-events: none;
}

.welcome-card {
    width: min(100%, 1120px);
    padding: clamp(36px, 4.5vw, 58px);
    text-align: center;
    background: rgb(255 255 255 / 97%);
    border: 1px solid rgb(255 255 255 / 84%);
    border-radius: 22px;
    box-shadow:
        0 28px 70px rgb(var(--brand-primary-rgb) / 24%),
        inset 0 1px 0 var(--white);
    backdrop-filter: blur(7px);
}

.welcome-card__header {
    max-width: 760px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--brand-accent);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    width: 34px;
    height: 2px;
    content: "";
    background: var(--brand-accent);
}

.welcome-card h1 {
    margin: 20px 0 10px;
    font-size: clamp(2.45rem, calc(5vw * var(--a11y-font-scale, 1)), 4.25rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.welcome-card__header p {
    margin: 0;
    color: var(--slate-500);
    font-size: clamp(0.95rem, calc(1.4vw * var(--a11y-font-scale, 1)), 1.12rem);
    line-height: 1.55;
}

.action-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: clamp(34px, 4.5vw, 48px);
}

.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
    min-height: 270px;
    padding: clamp(24px, 3vw, 34px);
    text-align: left;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-top: 3px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(var(--brand-primary-rgb) / 3%);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.action-card--radication {
    border-top-color: var(--brand-accent);
}

.action-card--query:hover,
.action-card--query:focus-within {
    border-top-color: var(--brand-accent);
    box-shadow: 0 14px 30px rgb(var(--brand-primary-rgb) / 12%);
    transform: translateY(-3px);
}

.action-card__content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.action-card__icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 88px;
    height: 88px;
    color: var(--brand-accent);
    background: var(--brand-soft);
    border-radius: 16px;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.action-card--query .action-card__icon {
    color: var(--brand-hover);
    background: var(--brand-soft);
}

.action-card__icon > i {
    position: absolute;
    line-height: 1;
}

.action-card__icon-file {
    font-size: 3rem;
}

.action-card__icon-badge {
    z-index: 1;
}

.action-card__icon-badge--plus {
    right: 14px;
    bottom: 14px;
    font-size: 1.45rem;
    background: var(--brand-soft);
    border: 2px solid var(--brand-soft);
    border-radius: 50%;
}

.action-card__icon-badge--search {
    right: 11px;
    bottom: 12px;
    padding: 3px;
    font-size: 1.45rem;
    background: var(--brand-soft);
    border-radius: 50%;
}

.action-card--query:hover .action-card__icon,
.action-card--query:focus-within .action-card__icon {
    color: var(--brand-accent);
    background: var(--brand-soft);
}

.action-card--query:hover .action-card__icon-badge--search,
.action-card--query:focus-within .action-card__icon-badge--search {
    background: var(--brand-soft);
}

.action-card__copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.action-card__copy strong {
    color: var(--brand-primary);
    font-size: clamp(1.08rem, calc(1.8vw * var(--a11y-font-scale, 1)), 1.35rem);
    line-height: 1.2;
}

.action-card__copy small {
    max-width: 230px;
    color: var(--slate-500);
    font-size: 0.88rem;
    line-height: 1.55;
}

.action-card__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    border-radius: 8px;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.action-card__button--primary {
    color: var(--white);
    background: linear-gradient(100deg, var(--brand-primary), var(--brand-hover));
    border: 2px solid var(--brand-hover);
    box-shadow: 0 8px 18px rgb(var(--brand-primary-rgb) / 18%);
}

.action-card__button--secondary {
    color: var(--brand-hover);
    background: var(--white);
    border: 2px solid var(--brand-primary);
}

.action-card__button:hover {
    box-shadow: 0 11px 24px rgb(var(--brand-primary-rgb) / 18%);
    transform: translateY(-2px);
}

.action-card__button--secondary:hover {
    color: var(--white);
    background: var(--brand-hover);
}

.action-card--query:hover .action-card__button--secondary,
.action-card--query:focus-within .action-card__button--secondary {
    color: var(--white);
    background: linear-gradient(100deg, var(--brand-primary), var(--brand-hover));
    border-color: var(--brand-hover);
    box-shadow: 0 8px 18px rgb(var(--brand-primary-rgb) / 18%);
}

.action-card__button:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
}

.action-card__arrow {
    position: absolute;
    right: 1.5rem;
    flex: 0 0 auto;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.action-card__button:hover .action-card__arrow {
    transform: translateX(5px);
}

.welcome-card__footer {
    display: flex;
    gap: 13px;
    align-items: center;
    justify-content: center;
    margin-top: clamp(28px, 4vw, 42px);
    color: var(--slate-500);
    font-size: 0.82rem;
}

.security-icon {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 34px;
    color: var(--brand-hover);
    border: 2px solid currentColor;
    border-radius: 5px 5px 10px 10px;
}

.security-icon > span {
    width: 10px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
}

@media (max-width: 820px) {
    .site-header {
        min-height: 88px;
    }

    .site-header__inner {
        width: calc(100% - 36px);
    }






    .landing {
        min-height: calc(100svh - 88px);
    }

    .welcome-card {
        padding: 38px 28px;
    }

    .action-list {
        gap: 18px;
    }

    .action-card {
        padding: 24px 20px;
    }

    .action-card__content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .action-card__icon {
        justify-self: center;
    }

    .action-card__copy small {
        margin: 0 auto;
    }
}

/* Ajuste para portátiles y pantallas horizontales con poca altura disponible. */
@media (min-width: 621px) and (max-height: 820px) {
    .site-header {
        min-height: 82px;
    }




    .landing {
        min-height: calc(100vh - 82px);
        min-height: calc(100svh - 82px);
        place-items: start center;
        padding: 22px clamp(24px, 5vw, 64px);
    }

    .welcome-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(100%, calc(160vh - 202px), 1120px);
        width: min(100%, calc(160svh - 202px), 1120px);
        aspect-ratio: 1.6 / 1;
        padding: 28px clamp(32px, 4vw, 46px);
    }

    .eyebrow {
        font-size: 0.7rem;
    }

    .welcome-card h1 {
        margin: 12px 0 7px;
        font-size: clamp(2.35rem, calc(4.2vw * var(--a11y-font-scale, 1)), 3.35rem);
    }

    .welcome-card__header p {
        font-size: 0.92rem;
    }

    .action-list {
        gap: 22px;
        margin-top: 24px;
    }

    .action-card {
        gap: 18px;
        min-height: 218px;
        padding: 22px;
    }

    .action-card__icon {
        width: 70px;
        height: 70px;
    }

    .action-card__icon-file {
        font-size: 2.45rem;
    }

    .action-card__icon-badge--plus,
    .action-card__icon-badge--search {
        right: 9px;
        bottom: 9px;
        font-size: 1.2rem;
    }

    .welcome-card__footer {
        margin-top: 22px;
        font-size: 0.76rem;
    }

    .security-icon {
        width: 26px;
        height: 30px;
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 88px;
    }







    .landing {
        place-items: start center;
        overflow: visible;
        padding: 20px 14px;
    }

    .welcome-card {
        padding: 34px 18px 28px;
        border-radius: 16px;
    }

    .eyebrow {
        gap: 10px;
        font-size: 0.66rem;
    }

    .eyebrow::before,
    .eyebrow::after {
        width: 20px;
    }

    .action-list {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: auto;
    }

    .action-card__content {
        grid-template-columns: auto 1fr;
        text-align: left;
    }

    .action-card__icon {
        width: 72px;
        height: 72px;
    }

    .action-card__copy small {
        margin: 0;
    }

    .welcome-card__footer {
        align-items: flex-start;
        text-align: left;
        line-height: 1.45;
    }
}

@media (max-width: 390px) {
    .site-header__inner {
        width: calc(100% - 24px);
    }






    .action-card__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .action-card__copy small {
        margin: 0 auto;
    }
}

/* Use the actual header height; growing text may still extend the page naturally. */
body.index-page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.index-page .site-header { flex-shrink: 0; }
.index-page .landing {
    flex: 1 0 auto;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
